package command;

import domain.Profile;
import domain.User;

public class ContactInfoForm {
	private String phones;
	
	private String emails;
	
	private String address;
	
	public ContactInfoForm() {
		
	}
	
	public ContactInfoForm(User user){
		Profile p = user.getProfile();
		
		this.phones=p.getPhones();
		this.emails = p.getEmails();
		this.address = p.getAddress();
	}
	
	public void update(User user){
		Profile p = user.getProfile();
		p.setPhones(phones);
		p.setEmails(emails);
		p.setAddress(address);
	}

	public String getEmails() {
		return emails;
	}

	public void setEmails(String emails) {
		this.emails = emails;
	}

	public String getPhones() {
		return phones;
	}

	public void setPhones(String phones) {
		this.phones = phones;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	
}